package br.com.affero.testewel.model.user;

import org.hibernate.Session;

import br.com.affero.testewel.util.HibernateUtil;

public class UserHibernateDAO implements UserDAO {

	@Override
	public User findOneById(Long id) {
		final Session session = HibernateUtil.getInstance().getSession();
		return (User) session.get(User.class, id);
	}

}
